//
//  ThreeLevelLinkageModel.h
//  huashiedu
//
//  Created by oceans on 2018/9/9.
//  Copyright © 2018年 hema. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ProvinceModel : NSObject
@property (copy, nonatomic) NSString *province_name;
@property (copy, nonatomic) NSString *province_number;
- (instancetype)initWithDic:(NSDictionary*)dic;
@end

@interface CityModel : NSObject;

@property (copy, nonatomic) NSString *city_name;
@property (copy, nonatomic) NSString *city_number;
- (instancetype)initWithDic:(NSDictionary *)dic;
@end

@interface AreaModel : NSObject
@property (copy, nonatomic) NSString *area_name;
@property (copy, nonatomic) NSString *area_number;
- (instancetype)initWithDic:(NSDictionary *)dic;
@end

@interface ThreeLevelLinkageModel : NSObject

@property (strong, nonatomic) NSArray <ProvinceModel *> *provinces;

+ (instancetype)shared;
- (void)didSelectProvinceAtIndex:(NSInteger)index cityData:(void (^)(NSMutableArray <CityModel *> *dataArray))cityDataBlock areaData:(void (^)(NSMutableArray <AreaModel *> *dataArray))areaDataBlock;
- (void)didSelectCityAtIndex:(NSString *)city_number areaData:(void (^)(NSMutableArray <AreaModel *> *dataArray))areaDataBlock;
@end
